import * as userTypes from "../action_types/userTypes";

export const saveUserCreator = (user) => ({
    type: userTypes.SAVE_USER,
    payload: { user },
});

export const LogoutUser = () => ({
    type: userTypes.CLEAR_USER
})
export const ModifyUser = (user) => ({
    type :userTypes.MODIFY_USER,
    payload: { user },
})